package cn.iocoder.yudao.module.common.controller.admin.comment.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import javax.validation.constraints.*;

@Schema(description = "管理后台 - 评论新增/修改 Request VO")
@Data
public class CommentSaveReqVO {

    @Schema(description = "主键", requiredMode = Schema.RequiredMode.REQUIRED, example = "28093")
    private Long id;

    @Schema(description = "用户ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "14120")
    @NotNull(message = "用户ID不能为空")
    private Long userId;

    @Schema(description = "评论内容", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "评论内容不能为空")
    private String content;

    @Schema(description = "目标资源ID", requiredMode = Schema.RequiredMode.REQUIRED, example = "11442")
    @NotNull(message = "目标资源ID不能为空")
    private Long targetId;

    @Schema(description = "目标资源类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotEmpty(message = "目标资源类型不能为空")
    private String targetType;

    @Schema(description = "父评论ID", example = "28083")
    private Long parentCommentId;

    @Schema(description = "评论类型 回复或者追加评论", example = "1")
    private String commentType;

    @Schema(description = "创建人", example = "赵六")
    private String creatorName;

    @Schema(description = "更新人", example = "芋艿")
    private String updaterName;

    @Schema(description = "版本号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "版本号不能为空")
    private Integer version;

}